package GUI.Course;

/**
 * this is the CourseManage window GUI class. thru that window user can
 * access to Course Management
 */
import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import javax.swing.border.LineBorder;

import GUI.Dog.DogManage;
import GUI.Report.ReportManage;
import GUI.Test.TestManage;

public class CourseManage extends JFrame {

	private static final long serialVersionUID = 1L;

	@SuppressWarnings("unused")
	public CourseManage() {
		setTitle("\u05E7\u05D5\u05E8\u05E1\u05D9\u05DD");
		getContentPane().setLayout(null);
		this.setSize(600, 500);
		JPanel panel = new JPanel();
		panel.setLayout(null);
		panel.setBorder(new LineBorder(new Color(0, 0, 0)));
		panel.setBounds(25, 105, 398, 236);
		getContentPane().add(panel);
		
		JButton button = new JButton("\u05D1\u05D7\u05E8");
		button.setFont(new Font("David", Font.PLAIN, 14));
		button.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) 
			{
				Addcourse newCourse=new Addcourse();
				newCourse.setVisible(true);
				dispose();
			
			}
		});
		button.setBounds(21, 93, 70, 23);
		panel.add(button);
		
		JButton button_1 = new JButton("\u05D1\u05D7\u05E8");
		button_1.setFont(new Font("David", Font.PLAIN, 14));
		button_1.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) 
			{
			DeleteCourseWindow deletecourse = null;
			try {
				deletecourse = new DeleteCourseWindow();
			} catch (Exception e1) {
				
				e1.printStackTrace();
			}
			dispose();
			deletecourse.setVisible(true);
			}
		});
		button_1.setBounds(21, 142, 70, 23);
		panel.add(button_1);
		
		JLabel label = new JLabel("\u05D4\u05D5\u05E1\u05E4\u05EA \u05E7\u05D5\u05E8\u05E1 \u05D7\u05D3\u05E9 \u05DC\u05DE\u05E2\u05E8\u05DB\u05EA");
		label.setHorizontalAlignment(SwingConstants.RIGHT);
		label.setFont(new Font("David", Font.PLAIN, 14));
		label.setBounds(56, 97, 328, 14);
		panel.add(label);
		
		JLabel label_1 = new JLabel("\u05DE\u05D7\u05D9\u05E7\u05EA \u05E7\u05D5\u05E8\u05E1 \u05E7\u05D9\u05D9\u05DD \u05DE\u05D4\u05DE\u05E2\u05E8\u05DB\u05EA");
		label_1.setHorizontalAlignment(SwingConstants.RIGHT);
		label_1.setFont(new Font("David", Font.PLAIN, 14));
		label_1.setBounds(56, 146, 326, 14);
		panel.add(label_1);
		
		JLabel label_3 = new JLabel("\u05D1\u05D7\u05E8 \u05D1\u05E4\u05E2\u05D5\u05DC\u05D4 \u05D4\u05E8\u05E6\u05D5\u05D9\u05D9\u05D4 :");
		label_3.setHorizontalAlignment(SwingConstants.RIGHT);
		label_3.setFont(new Font("David", Font.BOLD, 16));
		label_3.setBounds(113, 36, 165, 23);
		panel.add(label_3);
		
		ImageIcon ic1=new ImageIcon("C:/Project/IDF1/MiscFiles/okets.jpg");
		JLabel lblNewLabel_2 = new JLabel(new ImageIcon("C:/Project/IDF1/MiscFiles/Picture4.jpg"));
		lblNewLabel_2.setBounds(-11, 0, 425, 277);
		panel.add(lblNewLabel_2);
		
		JButton button_3 = new JButton("\u05DE\u05D0\u05D2\u05E8 \u05DB\u05DC\u05D1\u05D9\u05DD");
		button_3.setFont(new Font("David", Font.PLAIN, 14));
		button_3.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				DogManage newDogM=new DogManage();
				newDogM.setVisible(true);
				dispose();
			}
		});
		button_3.setBounds(443, 125, 111, 23);
		getContentPane().add(button_3);
		
		JButton button_4 = new JButton("\u05E7\u05D5\u05E8\u05E1\u05D9\u05DD");
		button_4.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				CourseManage c=new CourseManage();
				c.setVisible(true);
				dispose();
			}
		});
		button_4.setFont(new Font("David", Font.BOLD, 18));
		button_4.setBounds(443, 177, 111, 23);
		getContentPane().add(button_4);
		
		JButton button_5 = new JButton("\u05D3\u05D5\u05D7\u05D5\u05EA");
		button_5.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				ReportManage r=new ReportManage();
				r.setVisible(true);
				dispose();
			}
		});
		button_5.setFont(new Font("David", Font.PLAIN, 14));
		button_5.setBounds(443, 235, 111, 23);
		getContentPane().add(button_5);
		
		JButton button_6 = new JButton("\u05DE\u05D1\u05D7\u05E0\u05D9\u05DD");
		button_6.setFont(new Font("David", Font.PLAIN, 14));
		button_6.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				TestManage t=new TestManage();
				t.setVisible(true);
				dispose();
			}
		});
		button_6.setBounds(443, 291, 111, 23);
		getContentPane().add(button_6);
		
		JButton button_2 = new JButton("\u05D9\u05E6\u05D9\u05D0\u05D4 \u05DE\u05D4\u05DE\u05E2\u05E8\u05DB\u05EA");
		button_2.setFont(new Font("David", Font.PLAIN, 14));
		button_2.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				System.exit(0);
			}
		});
		button_2.setBounds(25, 385, 127, 23);
		getContentPane().add(button_2);
		ImageIcon ic=new ImageIcon("C:/Project/IDF1/MiscFiles/okets.jpg");
		JLabel lblNewLabel_1 = new JLabel(new ImageIcon("C:/Project/IDF1/MiscFiles/Picture4.jpg"));
		lblNewLabel_1.setBounds(-13, -84, 612, 610);
		getContentPane().add(lblNewLabel_1);
	}

}
